﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data;

namespace DAO
{
    public class CTHoaDonDB
    {
        DataProvider dp = new DataProvider();

        public bool dThemCTHoaDon(int madv, float dongia, int soluong)
        {
            string sql = "insert into CTHoaDon values((select top(1)MaHD from HoaDon order by MaHD desc), " + madv + ", " + soluong + ", " + dongia + ")";
            return dp.ExecuteNonQuery(sql);
        }
    }
}
